package com.employeemanage.mapper;

import com.employeemanage.domain.bean.TblPurchase;
import com.employeemanage.domain.vo.PurchaseResponseVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 郭可欣
* @description 针对表【tbl_purchase(采购记录)】的数据库操作Mapper
* @createDate 2025-07-05 14:20:29
* @Entity com.employeemanage.domain.bean.TblPurchase
*/
@Mapper
public interface TblPurchaseMapper extends BaseMapper<TblPurchase> {

    /**
     * 分页查询进货记录列表
     * @param page 分页参数
     * @param supplierName 供应商名称
     * @param startDate 开始日期
     * @param endDate 结束日期
     * @param productName 商品名称
     * @return 进货记录列表
     */
    Page<PurchaseResponseVo> selectPurchaseList(Page<PurchaseResponseVo> page,
                                               @Param("supplierName") String supplierName,
                                               @Param("startDate") String startDate,
                                               @Param("endDate") String endDate,
                                               @Param("productName") String productName);
}




